﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PendingTasksByPersonUserControl.ascx.cs"
    Inherits="TRIG_MOD_DASHBOARDS.PendingTasksByPerson.PendingTasksByPersonUserControl" %>
<script src="/_layouts/TRIG_MOD_DASHBOARDS\Scripts\ValidationScripts.js" type="text/javascript"
    language="javascript"></script>
<link rel="Stylesheet" type="text/Css" href="/_layouts/TRIG_MOD_DASHBOARDS/tce.css" />

<link rel="Stylesheet" type="text/css" href="/projects/27/_layouts/1033/STYLES/Themable/FORMS.CSS" />

<asp:UpdatePanel ID="err" runat="server">
    <ContentTemplate>
        <asp:Label ID="errorMsg" runat="server"></asp:Label>
    </ContentTemplate>
    <Triggers>
    <asp:AsyncPostBackTrigger  ControlID="btnPendingShow" EventName="Click" />
    </Triggers>
</asp:UpdatePanel>

<asp:UpdatePanel ID="uptP" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td>
                    Users
                    <asp:DropDownList runat="server" ID="ddlTaskPerson" CssClass="title" OnSelectedIndexChanged="ddlTaskPerson_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="ddlTaskPerson" EventName="SelectedIndexChanged" />
    </Triggers>
</asp:UpdatePanel>
<asp:UpdatePanel ID="btnsp" runat="server">
    <ContentTemplate>
        <asp:Button runat="server" ID="btnPendingShow" Text="Show" OnClick="btnPendingShow_Click" CssClass="ms-ButtonHeightWidth" />
        <asp:Button runat="server" ID="btnClear" Text="Clear" OnClick="btnClear_Click" CssClass="ms-ButtonHeightWidth" />
        <asp:LinkButton runat="server" ID="lnkCompUsers" Text="View completed user tasks"
            OnClick="lnkCompUsers_Click" Visible="false" CssClass="ms-ButtonHeightWidth"></asp:LinkButton>
    </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="gvUserPending" runat="server">
    <ContentTemplate>
        <asp:GridView ID="gvUserPendingTasks" runat="server" AllowPaging="True" AlternatingRowStyle-CssClass="alt"
            CommandRowStyle-CssClass="ftr" CssClass="grid" EditRowStyle-CssClass="EditRowStyle"
            EnableModelValidation="True" FieldHeaderStyle-CssClass="hdr" GridLines="None"
            PagerStyle-CssClass="pgr" PageSize="5" RowStyle-CssClass="mGridRowStyle" SelectedRowStyle-CssClass="SelectedRowStyle"
            OnPageIndexChanging="gvUserPendingTasks_PageIndexChanging" OnRowDataBound="gvUserPendingTasks_RowDataBound">
            <PagerSettings Mode="Numeric" Position="Bottom" />
        </asp:GridView>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnPendingShow" EventName="Click" />
    </Triggers>
</asp:UpdatePanel>
